package com.xhc.controller;

import com.xhc.Service.StockService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/")
public class TestController {
    @Resource
    StockService stockService;

    @GetMapping("/deduct")
    public String stockDeduct() {
        stockService.deduct();
        return "deduct";
    }
}
